package j10;

public class J11_Ch04_Q3Q4 {

	public static void main(String[] args) {
		Wine wine = new Wine("삼성", "소주", "구로구", "서울 특별시", "술", 1989, 1);
		
		System.out.println(wine.drink());

	}

}

class Wine {
	String manufacturer;
	String name;
	String country;
	String region;
	String kind;
	int year;
	int grade;

public Wine()  {}

public Wine(String manufacturer,String name,String country,String region,String kind,int year,int grade){
	this.manufacturer = manufacturer;
	this.name = name;
	this.country = country;
	this.region = region;
	this.kind = kind;
	this.year = year;
	this.grade = grade;
}
	String drink() {
		String i;
		i= "제조사는 "+manufacturer+"\n";
		i= i+"이름은 "+name+"\n";
		i= i+"지역은 "+country+"\n";
		i= i+"주는 "+region+"\n";
		i= i+"종류는 "+kind+"\n";
		i= i+"연도는 "+year+"\n";
		i= i+"품질은 "+grade;
		
		return i;
	}
}
